﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tracy.DataModel;

namespace TracyGUI.UIComponent
{
    class ListBoxItemResource
    {
        Resource _data;

        public Resource Data
        {
            get { return _data; }
            set { _data = value; }
        }
        public ListBoxItemResource(Resource data)
        {
            _data = data;
        }

        public override string ToString()
        {
            if (Data == null) return "";
            else return Data.Title;
        }
    }
}
